package com.patterns.demo.flyWeight;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/4
 */
public class ConcreteFlyWeight implements FlyWeight {

    private String name;

    public ConcreteFlyWeight(String name) {
        this.name = name;
    }

    @Override
    public void action() {
        System.out.println("crated object : name = " + this.name );
    }
}
